package com.wondersgroup.fjzlpt.tbxt.dao.impl.gyzjb;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.quick.framework.boot.repository.sql.bean.SQLBean;
import com.quick.framework.boot.repository.sql.bean.table.TableBean;
import com.quick.framework.boot.repository.sql.jdbcTemplate.impl.BaseJTDAOImpl;
import com.wondersgroup.fjzlpt.tbxt.dao.inter.gyzjb.YyfsDao;

@Repository
public class YyfsDaoImpl extends BaseJTDAOImpl implements YyfsDao {

	@Override
	@Autowired
	@Qualifier("TB_TBXT_YYFS")
	public void setTb(TableBean tb) {
		super.setTb(tb);
	}

	@Override
	public void deleteByBbid(Map<String, Object> map) {
		StringBuffer sqlBuf = new StringBuffer("delete from ");
		sqlBuf.append(this.tb.getTableName());
		sqlBuf.append(" where BBID = ?");
		SQLBean bean = new SQLBean(sqlBuf.toString(), map.get("BBID"));
		super.update(bean);
	}
}
